package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.DrawLotteryCreditGoodsInfoMapper;
import com.netease.nie.model.DrawLotteryCreditGoodsInfo;

/**
 * 抽奖积分商品数据操作
 * @author gzlibingjie
 */
@Repository
public class DrawLotteryCreditGoodsInfoDao {
	
	@Resource
	private DrawLotteryCreditGoodsInfoMapper drawLotteryCreditGoodsInfoMapper;
	
	public List<DrawLotteryCreditGoodsInfo> queryByActivityId(Integer activityId) {
		return drawLotteryCreditGoodsInfoMapper.queryByActivityId(activityId);
	}
	
	public DrawLotteryCreditGoodsInfo queryMinByActivityId(Integer activityId) {
		return drawLotteryCreditGoodsInfoMapper.queryMinByActivityId(activityId);
	}

}
